#ifndef __RPC_RET_H__
#define __RPC_RET_H__

typedef enum
{
    RET_SUCCESS,
    // tcp operation
    TCP_CONNECT_FAILED,
    READ_SIZE_NOT_EQAL_EXPECT,
    READ_MESSAGE_SIZE_INVALID,
    // message operation
    MESSAGE_CREATE_FAILED,

    WRITE_RECV_BYTES_FAILED,
    // transmission operation
    TRANSMISSION_CREATE_FAILED,
    // epoll event operation
    EPOLL_CTL_ADD_FAILED,
    // QUEUE OPERATION
    QUEUE_MAX_SIZE_INVALID,
    QUEUE_IS_FULL,
    QUEUE_IS_EMPTY,
    // multi thread operation
    PTHREAD_MUTEX_LOCK_FAILED,
    PTHREAD_MUTEX_UNLOCK_FAILED,
    PTHREAD_COND_NOTIFY_FAILED,
    // MALLOC operation
    MEM_MALLOC_FAILED,
} ret_t;


#endif // __RPC_RET_H__